import { request } from '@ruifox-cms/utils'

// 获取无障碍工具栏配置信息
export function getToolbarInfo() {
  return request({
    url: '/toolbar/getToolbarInfo',
    method: 'get',
  })
}

// 整体配置修改
export function allStyleEdit(data) {
  return request({
    url: '/toolbar/allStyleEdit',
    method: 'post',
    data
  })
}

// 读屏区域新增
export function readLocAdd(data) {
  return request({
    url: '/toolbar/readLocAdd',
    method: 'post',
    data
  })
}
// 读屏区域修改
export function readLocEdit(data) {
  return request({
    url: '/toolbar/readLocEdit',
    method: 'post',
    data
  })
}
// 读屏区域删除
export function readLocDelete(data) {
  return request({
    url: '/toolbar/readLocDelete',
    method: 'delete',
    data
  })
}

// 单个图标新增
export function iconAdd(data) {
  return request({
    url: '/toolbar/iconAdd',
    method: 'post',
    data
  })
}
// 单个图标修改
export function iconEdit(data) {
  return request({
    url: '/toolbar/iconEdit',
    method: 'post',
    data
  })
}
// 图标删除
export function iconDelete(data) {
  return request({
    url: '/toolbar/iconDelete',
    method: 'delete',
    data
  })
}